﻿// Admin.NET 项目的版权、商标、专利和其他相关权利均受相应法律法规的保护。使用本项目应遵守相关法律法规和许可证的要求。
//
// 本项目主要遵循 MIT 许可证和 Apache 许可证（版本 2.0）进行分发和使用。许可证位于源代码树根目录中的 LICENSE-MIT 和 LICENSE-APACHE 文件。
//
// 不得利用本项目从事危害国家安全、扰乱社会秩序、侵犯他人合法权益等法律法规禁止的活动！任何基于本项目二次开发而产生的一切法律纠纷和责任，我们不承担任何责任！

using Admin.NET.Core;
using Magicodes.ExporterAndImporter.Core;
using Magicodes.ExporterAndImporter.Excel;
using System.ComponentModel.DataAnnotations;

namespace Admin.NET.Application;

/// <summary>
/// 出库管理表基础输入参数
/// </summary>
public class OutboundmanagementBaseInput
{
    /// <summary>
    /// 主键Id
    /// </summary>
    public virtual long? Id { get; set; }
    
    /// <summary>
    /// 出库单号
    /// </summary>
    public virtual string? outboundNumber { get; set; }
    
    /// <summary>
    /// 出库类型
    /// </summary>
    public virtual string? outboundType { get; set; }
    
    /// <summary>
    /// 仓库名称
    /// </summary>
    public virtual long? warehouseName { get; set; }
    
    /// <summary>
    /// 出库日期
    /// </summary>
    public virtual DateTime? outboundDate { get; set; }
    
    /// <summary>
    /// 关联单号
    /// </summary>
    public virtual long? AssociatedNumber { get; set; }
    
    /// <summary>
    /// 客户名称
    /// </summary>
    public virtual long? clientName { get; set; }
    
    /// <summary>
    /// 收货人
    /// </summary>
    public virtual string? consignee { get; set; }
    
    /// <summary>
    /// 联系方式
    /// </summary>
    public virtual string? consigneePhone { get; set; }
    
    /// <summary>
    /// 经办人
    /// </summary>
    public virtual long? Attn { get; set; }
    
    /// <summary>
    /// 备注
    /// </summary>
    public virtual string? Desc { get; set; }
    
    /// <summary>
    /// 状态
    /// </summary>
    public virtual bool? Status { get; set; }
    
    /// <summary>
    /// 出库货品
    /// </summary>
    public virtual string? outboundGoods { get; set; }
    
    /// <summary>
    /// 出库数量
    /// </summary>
    public virtual int? outboundNum { get; set; }
    
    /// <summary>
    /// 出库金额
    /// </summary>
    public virtual decimal? outboundPrice { get; set; }
    
    /// <summary>
    /// 制单人
    /// </summary>
    public virtual long? manufactureNumberPeople { get; set; }
    
    /// <summary>
    /// 所在部门
    /// </summary>
    public virtual long? DepartmentId { get; set; }
    
    /// <summary>
    /// 制单时间
    /// </summary>
    public virtual DateTime? manufactureNumberDate { get; set; }
    
}

/// <summary>
/// 出库管理表分页查询输入参数
/// </summary>
public class PageOutboundmanagementInput : BasePageInput
{
    /// <summary>
    /// 出库单号
    /// </summary>
    public string? outboundNumber { get; set; }
    
    /// <summary>
    /// 出库类型
    /// </summary>
    public string? outboundType { get; set; }
    
    /// <summary>
    /// 仓库名称
    /// </summary>
    public long? warehouseName { get; set; }
    
    /// <summary>
    /// 出库日期范围
    /// </summary>
     public DateTime?[] outboundDateRange { get; set; }
    
    /// <summary>
    /// 关联单号
    /// </summary>
    public long? AssociatedNumber { get; set; }
    
    /// <summary>
    /// 客户名称
    /// </summary>
    public long? clientName { get; set; }
    
    /// <summary>
    /// 收货人
    /// </summary>
    public string? consignee { get; set; }
    
    /// <summary>
    /// 联系方式
    /// </summary>
    public string? consigneePhone { get; set; }
    
    /// <summary>
    /// 经办人
    /// </summary>
    public long? Attn { get; set; }
    
    /// <summary>
    /// 备注
    /// </summary>
    public string? Desc { get; set; }
    
    /// <summary>
    /// 状态
    /// </summary>
    public bool? Status { get; set; }
    
    /// <summary>
    /// 出库货品
    /// </summary>
    public string? outboundGoods { get; set; }
    
    /// <summary>
    /// 出库数量
    /// </summary>
    public int? outboundNum { get; set; }
    
    /// <summary>
    /// 出库金额
    /// </summary>
    public decimal? outboundPrice { get; set; }
    
    /// <summary>
    /// 制单人
    /// </summary>
    public long? manufactureNumberPeople { get; set; }
    
    /// <summary>
    /// 所在部门
    /// </summary>
    public long? DepartmentId { get; set; }
    
    /// <summary>
    /// 制单时间范围
    /// </summary>
     public DateTime?[] manufactureNumberDateRange { get; set; }
    
    /// <summary>
    /// 选中主键列表
    /// </summary>
     public List<long> SelectKeyList { get; set; }
}

/// <summary>
/// 出库管理表增加输入参数
/// </summary>
public class AddOutboundmanagementInput
{
    /// <summary>
    /// 出库单号
    /// </summary>
    [MaxLength(32, ErrorMessage = "出库单号字符长度不能超过32")]
    public string? outboundNumber { get; set; }
    
    /// <summary>
    /// 出库类型
    /// </summary>
    [MaxLength(32, ErrorMessage = "出库类型字符长度不能超过32")]
    public string? outboundType { get; set; }
    
    /// <summary>
    /// 仓库名称
    /// </summary>
    public long? warehouseName { get; set; }
    
    /// <summary>
    /// 出库日期
    /// </summary>
    public DateTime? outboundDate { get; set; }
    
    /// <summary>
    /// 关联单号
    /// </summary>
    public long? AssociatedNumber { get; set; }
    
    /// <summary>
    /// 客户名称
    /// </summary>
    public long? clientName { get; set; }
    
    /// <summary>
    /// 收货人
    /// </summary>
    [MaxLength(32, ErrorMessage = "收货人字符长度不能超过32")]
    public string? consignee { get; set; }
    
    /// <summary>
    /// 联系方式
    /// </summary>
    [MaxLength(32, ErrorMessage = "联系方式字符长度不能超过32")]
    public string? consigneePhone { get; set; }
    
    /// <summary>
    /// 经办人
    /// </summary>
    public long? Attn { get; set; }
    
    /// <summary>
    /// 备注
    /// </summary>
    [MaxLength(300, ErrorMessage = "备注字符长度不能超过300")]
    public string? Desc { get; set; }
    
    /// <summary>
    /// 状态
    /// </summary>
    public bool? Status { get; set; }
    
    /// <summary>
    /// 出库货品
    /// </summary>
    [MaxLength(32, ErrorMessage = "出库货品字符长度不能超过32")]
    public string? outboundGoods { get; set; }
    
    /// <summary>
    /// 出库数量
    /// </summary>
    public int? outboundNum { get; set; }
    
    /// <summary>
    /// 出库金额
    /// </summary>
    public decimal? outboundPrice { get; set; }
    
    /// <summary>
    /// 制单人
    /// </summary>
    public long? manufactureNumberPeople { get; set; }
    
    /// <summary>
    /// 所在部门
    /// </summary>
    public long? DepartmentId { get; set; }
    
    /// <summary>
    /// 制单时间
    /// </summary>
    public DateTime? manufactureNumberDate { get; set; }
    
}

/// <summary>
/// 出库管理表删除输入参数
/// </summary>
public class DeleteOutboundmanagementInput
{
    /// <summary>
    /// 主键Id
    /// </summary>
    [Required(ErrorMessage = "主键Id不能为空")]
    public long? Id { get; set; }
    
}

/// <summary>
/// 出库管理表更新输入参数
/// </summary>
public class UpdateOutboundmanagementInput
{
    /// <summary>
    /// 主键Id
    /// </summary>    
    [Required(ErrorMessage = "主键Id不能为空")]
    public long? Id { get; set; }
    
    /// <summary>
    /// 出库单号
    /// </summary>    
    [MaxLength(32, ErrorMessage = "出库单号字符长度不能超过32")]
    public string? outboundNumber { get; set; }
    
    /// <summary>
    /// 出库类型
    /// </summary>    
    [MaxLength(32, ErrorMessage = "出库类型字符长度不能超过32")]
    public string? outboundType { get; set; }
    
    /// <summary>
    /// 仓库名称
    /// </summary>    
    public long? warehouseName { get; set; }
    
    /// <summary>
    /// 出库日期
    /// </summary>    
    public DateTime? outboundDate { get; set; }
    
    /// <summary>
    /// 关联单号
    /// </summary>    
    public long? AssociatedNumber { get; set; }
    
    /// <summary>
    /// 客户名称
    /// </summary>    
    public long? clientName { get; set; }
    
    /// <summary>
    /// 收货人
    /// </summary>    
    [MaxLength(32, ErrorMessage = "收货人字符长度不能超过32")]
    public string? consignee { get; set; }
    
    /// <summary>
    /// 联系方式
    /// </summary>    
    [MaxLength(32, ErrorMessage = "联系方式字符长度不能超过32")]
    public string? consigneePhone { get; set; }
    
    /// <summary>
    /// 经办人
    /// </summary>    
    public long? Attn { get; set; }
    
    /// <summary>
    /// 备注
    /// </summary>    
    [MaxLength(300, ErrorMessage = "备注字符长度不能超过300")]
    public string? Desc { get; set; }
    
    /// <summary>
    /// 状态
    /// </summary>    
    public bool? Status { get; set; }
    
    /// <summary>
    /// 出库货品
    /// </summary>    
    [MaxLength(32, ErrorMessage = "出库货品字符长度不能超过32")]
    public string? outboundGoods { get; set; }
    
    /// <summary>
    /// 出库数量
    /// </summary>    
    public int? outboundNum { get; set; }
    
    /// <summary>
    /// 出库金额
    /// </summary>    
    public decimal? outboundPrice { get; set; }
    
    /// <summary>
    /// 制单人
    /// </summary>    
    public long? manufactureNumberPeople { get; set; }
    
    /// <summary>
    /// 所在部门
    /// </summary>    
    public long? DepartmentId { get; set; }
    
    /// <summary>
    /// 制单时间
    /// </summary>    
    public DateTime? manufactureNumberDate { get; set; }
    
}

/// <summary>
/// 出库管理表主键查询输入参数
/// </summary>
public class QueryByIdOutboundmanagementInput : DeleteOutboundmanagementInput
{
}

/// <summary>
/// 下拉数据输入参数
/// </summary>
public class DropdownDataOutboundmanagementInput
{
    /// <summary>
    /// 是否用于分页查询
    /// </summary>
    public bool FromPage { get; set; }
}

/// <summary>
/// 出库管理表数据导入实体
/// </summary>
[ExcelImporter(SheetIndex = 1, IsOnlyErrorRows = true)]
public class ImportOutboundmanagementInput : BaseImportInput
{
    /// <summary>
    /// 出库单号
    /// </summary>
    [ImporterHeader(Name = "出库单号")]
    [ExporterHeader("出库单号", Format = "", Width = 25, IsBold = true)]
    public string? outboundNumber { get; set; }
    
    /// <summary>
    /// 出库类型
    /// </summary>
    [ImporterHeader(Name = "出库类型")]
    [ExporterHeader("出库类型", Format = "", Width = 25, IsBold = true)]
    public string? outboundType { get; set; }
    
    /// <summary>
    /// 仓库名称 关联值
    /// </summary>
    [ImporterHeader(IsIgnore = true)]
    [ExporterHeader(IsIgnore = true)]
    public long? warehouseName { get; set; }
    
    /// <summary>
    /// 仓库名称 文本
    /// </summary>
    [ImporterHeader(Name = "仓库名称")]
    [ExporterHeader("仓库名称", Format = "", Width = 25, IsBold = true)]
    public string warehouseNameFkDisplayName { get; set; }
    
    /// <summary>
    /// 出库日期
    /// </summary>
    [ImporterHeader(Name = "出库日期")]
    [ExporterHeader("出库日期", Format = "", Width = 25, IsBold = true)]
    public DateTime? outboundDate { get; set; }
    
    /// <summary>
    /// 关联单号 关联值
    /// </summary>
    [ImporterHeader(IsIgnore = true)]
    [ExporterHeader(IsIgnore = true)]
    public long? AssociatedNumber { get; set; }
    
    /// <summary>
    /// 关联单号 文本
    /// </summary>
    [ImporterHeader(Name = "关联单号")]
    [ExporterHeader("关联单号", Format = "", Width = 25, IsBold = true)]
    public string AssociatedNumberFkDisplayName { get; set; }
    
    /// <summary>
    /// 客户名称 关联值
    /// </summary>
    [ImporterHeader(IsIgnore = true)]
    [ExporterHeader(IsIgnore = true)]
    public long? clientName { get; set; }
    
    /// <summary>
    /// 客户名称 文本
    /// </summary>
    [ImporterHeader(Name = "客户名称")]
    [ExporterHeader("客户名称", Format = "", Width = 25, IsBold = true)]
    public string clientNameFkDisplayName { get; set; }
    
    /// <summary>
    /// 收货人
    /// </summary>
    [ImporterHeader(Name = "收货人")]
    [ExporterHeader("收货人", Format = "", Width = 25, IsBold = true)]
    public string? consignee { get; set; }
    
    /// <summary>
    /// 联系方式
    /// </summary>
    [ImporterHeader(Name = "联系方式")]
    [ExporterHeader("联系方式", Format = "", Width = 25, IsBold = true)]
    public string? consigneePhone { get; set; }
    
    /// <summary>
    /// 经办人 关联值
    /// </summary>
    [ImporterHeader(IsIgnore = true)]
    [ExporterHeader(IsIgnore = true)]
    public long? Attn { get; set; }
    
    /// <summary>
    /// 经办人 文本
    /// </summary>
    [ImporterHeader(Name = "经办人")]
    [ExporterHeader("经办人", Format = "", Width = 25, IsBold = true)]
    public string AttnFkDisplayName { get; set; }
    
    /// <summary>
    /// 备注
    /// </summary>
    [ImporterHeader(Name = "备注")]
    [ExporterHeader("备注", Format = "", Width = 25, IsBold = true)]
    public string? Desc { get; set; }
    
    /// <summary>
    /// 状态
    /// </summary>
    [ImporterHeader(Name = "状态")]
    [ExporterHeader("状态", Format = "", Width = 25, IsBold = true)]
    public bool? Status { get; set; }
    
    /// <summary>
    /// 出库货品
    /// </summary>
    [ImporterHeader(Name = "出库货品")]
    [ExporterHeader("出库货品", Format = "", Width = 25, IsBold = true)]
    public string? outboundGoods { get; set; }
    
    /// <summary>
    /// 出库数量
    /// </summary>
    [ImporterHeader(Name = "出库数量")]
    [ExporterHeader("出库数量", Format = "", Width = 25, IsBold = true)]
    public int? outboundNum { get; set; }
    
    /// <summary>
    /// 出库金额
    /// </summary>
    [ImporterHeader(Name = "出库金额")]
    [ExporterHeader("出库金额", Format = "", Width = 25, IsBold = true)]
    public decimal? outboundPrice { get; set; }
    
    /// <summary>
    /// 制单人 关联值
    /// </summary>
    [ImporterHeader(IsIgnore = true)]
    [ExporterHeader(IsIgnore = true)]
    public long? manufactureNumberPeople { get; set; }
    
    /// <summary>
    /// 制单人 文本
    /// </summary>
    [ImporterHeader(Name = "制单人")]
    [ExporterHeader("制单人", Format = "", Width = 25, IsBold = true)]
    public string manufactureNumberPeopleFkDisplayName { get; set; }
    
    /// <summary>
    /// 所在部门 关联值
    /// </summary>
    [ImporterHeader(IsIgnore = true)]
    [ExporterHeader(IsIgnore = true)]
    public long? DepartmentId { get; set; }
    
    /// <summary>
    /// 所在部门 文本
    /// </summary>
    [ImporterHeader(Name = "所在部门")]
    [ExporterHeader("所在部门", Format = "", Width = 25, IsBold = true)]
    public string DepartmentFkDisplayName { get; set; }
    
    /// <summary>
    /// 制单时间
    /// </summary>
    [ImporterHeader(Name = "制单时间")]
    [ExporterHeader("制单时间", Format = "", Width = 25, IsBold = true)]
    public DateTime? manufactureNumberDate { get; set; }
    
}
